<!--
 * @Description: 入口
 * @Author bianpengfei
 * @create 2022/04/10 17:28
 -->
<script>
import { useWindowSize } from '@libs/utils/hooks'
import Vue from 'vue'

const size = useWindowSize()
Vue.util.defineReactive(Vue.prototype, '_$loading', false)

export default {
  render(h) {
    return h('router-view', {
      attrs: {
        id: 'app'
      },
      directives: [
        {
          name: 'spin',
          value: {
            loading: this._$loading,
            loadingText: ''
          }
        }
      ],
      style: {
        height: size.height
      }
    })
  }
}
</script>
